




import os
os.mkdir('语文')
os.chdir('语文')
data__list = ('语法','诗词','古文','写作','外国文学')
for data in data__list:
    filenae = data + '.txt'
    file = open(filename,'w')
    file.close()
path = os.getcwd()
print(os.listdir(path))
os.remove('外国文学.txt')
os.mkdir('外国文学')
file__name = os.listdir(path)
print(file__name)
i = 1
for name in file__name:
    if '.txt' in name:
        new__name = str(i) + name
        os.rename(name,new__name)
        i += 1
print(os.listdir(path))